﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using control.Biz;

public partial class category : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(Request.QueryString["MaCD"]!=null)
        {
            int _MaCD=int.Parse(Request.QueryString["MaCD"].ToString());
            BizChuDe chude = BizChuDe.GetByMa(_MaCD);
            List<BizSach> saches = new List<BizSach>();
            saches = BizSach.GetSachByIDLoai(_MaCD);
            category1.Saches = saches;
            category1.TieuDe = chude.TenChuDe;
        }
        else
            category1.Saches = new List<BizSach>();
    }
}
